//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by Fernflower decompiler)
//

package com.spring.schedule_system.dengxiaojiao.util;


public class LyOptResultUtil {
    public LyOptResultUtil() {
    }

    public static OptResult success() {
        return success((String)null);
    }

    public static OptResult success(String msg) {
        OptResult optResult = new OptResult();
        optResult.setMsg(msg);
        return optResult;
    }

    public static OptResult fail(String errorCode, String msg) {
        OptResult optResult = new OptResult();
        optResult.setMsg(msg);
        optResult.setResult(errorCode);
        return optResult;
    }

    public static boolean isSucess(OptResult optResult) {
        return null == optResult ? false : SuccessEnum.isSuccess(optResult.getResult());
    }
}
